package com.kongxiang.cubebit.ui.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 向量更新请求DTO
 *
 * @author kongxiang
 * @version 1.0
 * @since 2023-01-01
 */
@Data
@Schema(description = "向量更新请求")
public class VectorUpdateRequest {
    @NotNull(message = "ID不能为空")
    @Schema(description = "向量ID")
    private String id;

    @NotNull(message = "数据不能为空")
    @Size(min = 1, message = "数据长度至少为1")
    @Schema(description = "更新数据")
    private String data;
}